package com.ruoyi.project.product.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.web.domain.BaseEntity;

import java.util.List;

/**
 * 产品分享对象 z_products_share
 *
 * @author ruoyi
 * @date 2025-03-31
 */
@TableName("z_products_share")
public class ProductsShare extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    @TableId(type = IdType.AUTO)
    private Long shareId;

    /** 分享名 */
    @Excel(name = "分享唯一id")
    private String shareOnlyId;

    /** 分享链接 */
    @Excel(name = "分享链接")
    private String shareUrl;

    /*0未删除 2已删除*/
    private String delFlag;

    /*所属部门*/
    private Long deptId;

    @TableField(exist = false)
    private List<ProductsFile> productsFileList;

    @TableField(exist = false)
    private List<ProductsShareItem> productsShareItems;

    public List<ProductsShareItem> getProductsShareItems() {
        return productsShareItems;
    }

    public void setProductsShareItems(List<ProductsShareItem> productsShareItems) {
        this.productsShareItems = productsShareItems;
    }

    public Long getDeptId() {
        return deptId;
    }

    public void setDeptId(Long deptId) {
        this.deptId = deptId;
    }

    public List<ProductsFile> getProductsFileList() {
        return productsFileList;
    }

    public void setProductsFileList(List<ProductsFile> productsFileList) {
        this.productsFileList = productsFileList;
    }

    public String getDelFlag() {
        return delFlag;
    }

    public void setDelFlag(String delFlag) {
        this.delFlag = delFlag;
    }

    public void setShareId(Long shareId)
    {
        this.shareId = shareId;
    }

    public Long getShareId()
    {
        return shareId;
    }

    public String getShareOnlyId() {
        return shareOnlyId;
    }

    public void setShareOnlyId(String shareOnlyId) {
        this.shareOnlyId = shareOnlyId;
    }

    public void setShareUrl(String shareUrl)
    {
        this.shareUrl = shareUrl;
    }

    public String getShareUrl()
    {
        return shareUrl;
    }


}
